package cn.com.pc.content.service;

import cn.com.pc.content.domain.abuse.AbuseReport;
import cn.com.pc.content.domain.abuse.AbuseReportRepository;
import cn.com.pc.content.dto.AbuseReportForm;
import cn.com.pc.content.dto.PageResult;
import cn.com.pc.content.dto.TagDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class AbuseReportService {

    @Autowired
    private AbuseReportRepository abuseReportRepository;


    public long create(AbuseReport ar) {
        AbuseReport saved = abuseReportRepository.save(ar);
        return saved != null ? saved.getId() : 0L;
    }

    public PageResult<AbuseReport> pageByForm(AbuseReportForm form){
        return null;
    }
}
